package com.wander.designCreational.proxyAndDecorate.proxy;


import com.wander.designCreational.proxyAndDecorate.BitterCoffee;
import com.wander.designCreational.proxyAndDecorate.Coffee;

/**
 * @Author : WDYin
 * @Date : 2019/12/10
 * @Description :
 */
public class CoffeProxy implements Coffee {

    private Coffee coffee;

    public CoffeProxy() {
        this.coffee = new BitterCoffee();
    }

    @Override
    public void printlnMaterial() {
        System.out.println("糖");
        coffee.printlnMaterial();
    }


}
